home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 8
/
008.d81
/
remember it
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
5KB
|
112 lines
1 poke53281,3:poke53280,6:print"[147] remember it ";
2 print" by djb shibley "
3 q$(0)="hmmmm":q$(1)="thinking":q$(2)="well !":q$(3)="trying to remember"
4 q$(4)="checking memory":q$(5)="deciding":q$(6)="checking prior moves"
5 dimd$(44),u(44),m(44),r(35),r$(35)
6 d$(2)="***[157][157][157]***[157][157][157]***"
7 q$(7)="huh !":q$(8)="my move":q$(9)="let's see":q$(10)="thinking out my move"
10 d$(6)="[129][205] [206][157][157][157] [214] [157][157][157][206] [205]":d$(9)="###[157][157][157] [150][219] [157][157][157]###"
11 d$(0)=" [157][157][157] [144][193] [157][157][157] ":d$(1)="[152][209][209][209][157][157][157][209][209][209][157][157][157][209][209][209]"
12 d$(4)="[144][191][191][191][157][157][157][191][191][191][157][157][157][191][191][191]":d$(5)="[144][213][195][201][157][157][157][202][178][203][157][157][157] [150][215] "
13 d$(7)="[218][218][218][157][157][157] [218] [157][157][157][218][218][218]":d$(8)="[144][176][192][174][157][157][157][214][214][214][157][157][157][173][192][189]"
14 d$(3)=" [175] [157][157][157] [221] [157][157][157] [203] ":d$(10)="[154] [157][157][157] [146][219] [157][157][157] "
15 d$(11)="[158][166][166][166][157][157][157][166][166][166][157][157][157][166][166][166]":d$(12)="[154][169][169][169][157][157][157][192][192][192][154][157][157][157][169][169][169]"
16 d$(13)="[156][221][221][221][157][157][157][221][221][221][157][157][157][221][221][221]":d$(14)="[153][184][184][184][157][157][157][182] [146][181][157][157][157][185][185][185]"
17 d$(15)="[206][206][206][157][157][157] [157][157][157][205][205][205]":d$(16)="[156][171][192][179][157][157][157][171][192][179][157][157][157][171][192][179]"
18 d$(17)="[159] [185] [157][157][157] [146] [157][157][157] [184] "
19 d$(18)="[144] [178] [157][157][157] [194] [157][157][157] [177] ":d$(19)="[215][215][215][157][157][157][215][215][215][157][157][157][215][215][215]"
20 d$(20)="[158][192][192][192][157][157][157][146][192][192][192][157][157][157][192][192][192]":d$(21)="[207] [208][157][157][157] ! [157][157][157][204] [186]"
21 forj=22to43:d$(j)=d$(j-22):next:d$(44)=" [157][157][157] 1 [157][157][157]pt."
25 print" press 1 or 2 for # of players[145]":getx$:n=val(x$):ifn<1orn>2then25
26 ifn=2then34
27 print"[147]do you want me to play like":print" 1 - a solo elecrton"
28 print" 2 - a vacuume tube calculator":print" 3 - a gutless adding machine"
29 print" 4 - a non polished apple":print" 5 - a cripple micro-computer"
30 print" 6 - a micro-computer":print" 7 - a commodore micro-computer"
31 print" 8 - a mini-computer":print" 9 - a full blown mainframe"
32 poke198,0:wait198,1:getx$:s=val(x$):ifs=0then32
33 s=s*2:ifs>13thens=int(s*1.7):ifs>30thens=35
34 poke53281,15:print"[147]":gosub500:forj=0to44
35 print"[144]please wait...setting up!!"
40 x=rnd(0)*45:ifu(x)=1then40
45 u(x)=1:m(j)=int(x):next:print" "
49 forh=1ton:fori=1to2:o(i)=0
50 print"[144]player";h;"- door # [157][157][157][157][157]";:y$="":y=0:x$=""
51 inputy$:x$=y$:x=val(y$):goto55:rem gety$:ify$=""then51
52 printy$;:ify$=chr$(20)ory$="[157]"then50
53 y=y+1:ify>1thenx=val(x$+y$):goto55
54 x$=y$:y$="":goto51
55 ifx<1orx>45then50
56 x=x-1:ifu(x)=0or(i=2andx=o(1))then50
57 o(i)=x:x$=d$(m(x)):gosub950
60 ifm(o(i))=44thent(h)=t(h)+1:x=o(i):u(x)=0:gosub965:i=i-1
71 next:ifd$(m(o(1)))=d$(m(o(2)))thent(h)=t(h)+2:u(o(1))=0:u(o(2))=0:goto90
72 print" "
75 forj=0to4000:next:fori=1to2:x$=" [157][157][157] [157][157][157] [157][157][157][145]"+str$(o(i)+1):x=o(i)
76 gosub950:next:goto100
90 print"";spc(13);t(1);"[145]":printspc(34);t(2);:h=h-1
91 ift(1)+t(2)=45thenh=n
100 next:ift(1)+t(2)=45then200
105 ifn=2then49
106 ifs>15thenprint"[144] ";q$(rnd(0)*11)
107 z=0:y=0:forj=1tos:fork=jtos:ifr$(j)=r$(k)thenifr(j)<>r(k)thenz=j:y=k
109 next:next:print" ":ifz=0oru(r(z))=0then118
110 x=r(z):x$=r$(z):iflen(x$)<2then118
111 r$(z)="":u(x)=0:gosub950:x=r(y):u(x)=0:t(2)=t(2)+2:gosub950:r$(y)=" "
112 print"":goto107
118 a=o(1):b=o(2):a$=d$(m(a)):b$=d$(m(b))
120 x=0:y=0:forj=1tos:ifr$(j)=a$andr(j)<>athenx=r(j):x$=r$(j)
125 ifr$(j)=b$andr(j)<>btheny=r(j):y$=r$(j)
130 next:ifx>0thenu(x)=0:gosub950:x=a:u(x)=0:t(2)=t(2)+2:gosub950:x=-1
131 ift(1)+t(2)=45then200
132 ifx=-1thenforj=0to1500:next:goto140
133 c=c+1:ifc>sthenc=1
134 r$(c)=a$:r(c)=a
140 ify>0thenu(y)=0:x=y:x$=y$:gosub950:x=b:u(x)=0:t(2)=t(2)+2:gosub950:x=-1
141 ift(1)+t(2)=45then200
142 ifx=-1thenforj=0to1500:next:goto150
143 c=c+1:ifc>sthenc=1
150 z=int(rnd(0)*44+1):z$=d$(m(z)):x$=z$:ift(1)+t(2)=45then200
151 ifu(z)=0then150
152 ifm(z)=44thenu(z)=0:t(2)=t(2)+1:x=z:gosub950:forj=0to1000:next:goto150
155 x=z:x$=z$:gosub950:y=0:forj=1tos:ifx$=r$(j)andr(j)<>ztheny=j
156 next:ify=0then160
158 u(z)=0:x=r(y):u(x)=0:t(2)=t(2)+2:gosub950:print"":ift(2)+t(1)=45then200
159 forj=0to1500:next:goto150
160 y=int(rnd(0)*44+1):y$=d$(m(y)):x$=y$:ifu(y)=0ory=zthen160
162 ifm(y)=44thenu(y)=0:t(2)=t(2)+1:x=y:gosub950:forj=0to1000:next:goto160
165 x=y:x$=y$:gosub950:ify$=z$thent(2)=t(2)+2:x=y:gosub950:u(z)=0:u(y)=0:x=-1
166 ift(1)+t(2)=45then200
167 ifx=-1thenforj=0to1500:next:goto150
170 forj=0to4000:next:c=c+1:ifc>sthenc=1
175 r$(c)=z$:r(c)=z:c=c+1:ifc>sthenc=1
176 r$(c)=y$:r(c)=y
180 x$=" [157][157][157] [157][157][157] [145][157][157][157]"+str$(z+1):x=z:gosub950
181 x$=" [157][157][157] [157][157][157] [145][157][157][157]"+str$(y+1):x=y:gosub950:goto49
200 print"play again ? (y/n) ";:getx$:ifx$<>"y"andx$<>"n"then200
201 ifx$="y"thent(1)=0:t(2)=0:forj=1to35:r$(j)="":next:goto34
202 goto63000
500 fori=0to4:print" ";
505 print" ";
510 print" ";
511 next
515 print" "
519 print"";:forj=0to4
520 print" ";
525 print" ";:next
530 print"12345678910111213";
535 print"1415161718192021222324252627";
540 print"2829303132333435363738394041";
545 print"42434445"
900 print" player 1";t(1)"[145]":printspc(25);
901 print"player 2";t(2);:return
950 print"[157]";:ifx>8thenforj=1toint(x/9):print"";:next
955 ifx<9then960
956 x=x-9:goto955
960 printspc((x+1)*4);x$
965 print"";spc(13);t(1);"[145]":printspc(34);t(2);
970 return
63000 rem connect back to l.s.
63002 print"[147]load"chr$(34)"payload"chr$(34)",8":print"run"
63004 poke198,0:poke631,13:poke632,13:poke198,2:end